<%--
  Created by IntelliJ IDEA.
  User: Jeck
  Date: 2010-1-26
  Time: 12:36:09
  To change this template use File | Settings | File Templates.
--%>

<%@ page import="com.future.User" contentType="text/html;charset=UTF-8" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+path+"/";
%>
<html>
  <head>
    <title>
      <g:message code="login.title"></g:message>
    </title>
    <meta name="layout" content="main"/>
    <style>
        .createUser{
          border-bottom: 1px solid #00cccc;
          /*border-left:1px solid black;*/
          /*border-right:1px solid black;*/
          /*border-top:1px solid black;*/
          height:auto;
          text-align:center;
          vertical-align:middle;
          position:relative;
          top:-4;
        }
    </style>
  </head>
  <body>
  <div>
    <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${evaluationInstance}">
            <div class="errors">
                <g:renderErrors bean="${evaluationInstance}" as="list" />
            </div>
            </g:hasErrors>
    <g:form controller="user" method="post" action="login">
      <div class="dialog">
      <table>
      <tr>
        <td><g:message code="login.userName"></g:message></td>
        <td><g:textField name="userName" value="${userInstance?.userName}" /></td>
      </tr>
      <tr>
        <td><g:message code="login.password"></g:message></td>
        <td><g:textField name="password" value="${userInstance?.password}" /></td>
      </tr>
    </table>
      </div>
      <div class="buttons" style="width:70%">
        <g:submitButton name="login.submit" value="Login"></g:submitButton>
        <g:link action="create" class="createUser" controller="user">创建用户</g:link>
      </div>
    </g:form>
  </div>
  </body>
</html>